// src/components/CustomFormLabel.js
import {Text} from '@tarojs/components'
import React from 'react';

const CustomFormLabel = ({ children, fontSize = '16px', fontWeight = 'bold' }) => {
  // 定义样式对象
  const labelStyle = {
    fontSize: fontSize,
    fontWeight: fontWeight,
    // 你也可以在这里添加其他通用样式，比如 color
    // color: '#333',
  };
  return <Text style={labelStyle}>{children}</Text>;
};

export default CustomFormLabel;
